#include <QApplication>
#include <QTranslator>
#include <QDebug>
#include "kmainwindow.h"
#include "kapplication.h"
#include "kexportshape.h"

int main(int argc, char* argv[]) {
	QApplication app(argc, argv);

	qRegisterMetaType<QList<KExportShape*>>("QList<KExportShape*>");

    QTranslator translator;

    if (translator.load(":/translation/lessoncode.qm")) {
        app.installTranslator(&translator);
        qDebug() << "Translation file loaded successfully!";
    }
    else {
        qDebug() << "Failed to load translation file.";
    }

	KApplication application;
	application.run();

	return app.exec();
}